<%-- 
    Document   : registerError
    Created on : 18-nov.-2011, 22:18:36
    Author     : laurent
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <fmt:setBundle basename="packageLanguage.lang" scope="session"/>       
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="css/tempstyle.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="js/valid.js" ></script> 
        <title><fmt:message key = "textWindowCart"/></title>
    </head>
    
    <body>
        <div id="wrapper">
            <div id="logo">
              <jsp:include page="header.jsp"/>  
            </div>
            <hr />
            <!-- end #logo -->
            <div id="header">
		<div id="menu">
			<ul>
				<li><a href="index.jsp" class="first"><fmt:message key = "textFooterHome"/></a></li>
            			<li><a href="CatalogController"><fmt:message key = "textFooterArticles"/></a></li>
				<li><a href="about.jsp"><fmt:message key = "textFooterAbout"/></a></li>
				<li><a href="contact.jsp"><fmt:message key = "textFooterContact"/></a></li>
			</ul>
		</div>
		<!-- end #menu -->
            </div>
        
            <div id="page">
                <div id="page-bgtop">
                    <c:set var="pagename" scope="request" value="register.jsp"/>
                    <jsp:include page="langpanel.jsp"></jsp:include>

                    <div id="content">
                        <div class="post">
                             <h2 class="title"><fmt:message key = "textTitleRegister"/></h2>
                             <div class="entry">  

                                 
                                       <form method="post" action="RegisterController" name="userDataForm" onsubmit="return validDataRegister('${sessionScope.lng}')">
                                            <fieldset>
                                                <legend><fmt:message key = "textRegInfo"/></legend>
                                                <p class="fieldsetTop"><label><fmt:message key = "textUserID"/>&nbsp;:</label> <input type="text" name="userID" value="${param.userID}" size="30"/></p>
                                                <p><label><fmt:message key = "textLastName"/>&nbsp;:</label> <input type="text" name="lastName" value="${param.lastName}" size="30"/></p>
                                                <p><label><fmt:message key = "textFirstName"/>&nbsp;:</label> <input type="text" name="firstName" value="${param.firstName}" size="30" /></p>
                                                <p> <label><fmt:message key = "textDeliveryAddress"/>&nbsp;:</label> <input type="text" name="deliveryAddress" value="${param.deliveryAddress}" size="50" /></p>
                                                <p><label><fmt:message key = "textEmail"/>&nbsp;:</label> <input type="text" name="email" value="${param.email}" size="50" /></p>
                                                <p><label><fmt:message key = "textPhoneNumber"/>&nbsp;:</label> <input type="text" name="phoneNumber" value="${param.phoneNumber}" size="30" /></p>     
                                                <p><label><fmt:message key = "textPassword"/>&nbsp;:</label> <input type="password" name="password" value="${param.password}"/></p>    
                                                <p><label><fmt:message key = "textPasswordRepeat"/>&nbsp;:</label> <input type="password" name="passwordRepeat" value="${param.passwordRepeat}"/></p>
                                                <p class="WarningMsg"><fmt:message key="textMandatoryFields" /> </p>
                                            </fieldset>
                                            <br/>
                                            <div textalign ="center">
                                                <input type="submit" textalign = "center" value="<fmt:message key = "textButton"/>" />
                                            </div>
                                        </form>
                                        <br/>
                                        <br/>
                                        <c:if test = "${registerError[0]}">
                                            <fmt:message key = "textErrorLogin"/><br/>
                                        </c:if>
                                         <c:if test = "${registerError[1]}">
                                            <fmt:message key = "textErrorFirstName"/><br/>
                                        </c:if>
                                         <c:if test = "${registerError[2]}">
                                            <fmt:message key = "textErrorLastName"/><br/>
                                        </c:if>
                                         <c:if test = "${registerError[3]}">
                                            <fmt:message key = "textErrorAddress"/><br/>
                                        </c:if>
                                         <c:if test = "${registerError[4]}">
                                            <fmt:message key = "textErrorEmail"/><br/>
                                        </c:if>
                                         <c:if test = "${registerError[5]}">
                                            <fmt:message key = "textErrorPhone"/><br/>
                                        </c:if>
                                         <c:if test = "${registerError[6]}">
                                            <fmt:message key = "textErrorPassword"/><br/>
                                        </c:if>
                                         <c:if test = "${registerError[7]}">
                                            <fmt:message key = "textErrorRePassword"/>
                                        </c:if>
                            </div>
                        </div>
                    </div>         
                </div>              
            </div>
                             
            <jsp:include page="footer.jsp"></jsp:include> 
            
        </div>
    </body>
</html>	